﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using HengTong.Model.Db;
using HengTong.Model;
using HengTong.Model.Db.Hr;
using HengTong.Model.Db.Hr.Bill;


namespace HengTong.ViewModel.Hr.SysHrInterviewPoolVms
{
    public partial class SysHrInterviewPoolTemplateVm : BaseTemplateVM
    {
        [Display(Name = "面试表")]
        public ExcelPropety InterviewRequestBillExcel = ExcelPropety.CreateProperty<SysHrInterviewPool>(x => x.InterviewRequestBillId);
        [Display(Name = "状态")]
        public ExcelPropety HrStatusExcel = ExcelPropety.CreateProperty<SysHrInterviewPool>(x => x.HrStatus);

	    protected override void InitVM()
        {
            InterviewRequestBillExcel.DataType = ColumnDataType.ComboBox;
            InterviewRequestBillExcel.ListItems = DC.Set<SysHrInterviewRequestBill>().GetSelectListItems(Wtm, y => y.BillCode);
        }

    }

    public class SysHrInterviewPoolImportVm : BaseImportVM<SysHrInterviewPoolTemplateVm, SysHrInterviewPool>
    {

    }

}
